﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace OA.IRepository
{
    public interface IRepositoryBase<T>
    {
        void Add(T obj);
        void Delete(int id);
        void Update(T obj);

        IQueryable<T> GetList(Expression<Func<T, bool>> where);

        T GetEntity(int id);
    }
}
